import service from "@/api/service";


export function listPortMap() {
    return service({
        method: 'get',
        url: '/api/port/ports'
    })
}

export function addPortMap(data) {
    return service({
        method: 'put',
        url: '/api/port',
        data
    })
}

export function removePortMap(id) {
    return service({
        method: 'delete',
        url: '/api/port/' + id
    })
}

export function notifyPortMapStatus(id) {
    return service({
        method: 'post',
        url: '/api/port/' + id
    })
}
